<?php 
  // var_dump(qvaCore::$qvaOptions['ourservices']['title']);
  $qva_serviceId = isset(qvaCore::$qvaOptions['ourservices']['content']) ? qvaCore::$qvaOptions['ourservices']['content'] : null;
  $qva_isEmpty = false;
  if (!empty($qva_serviceId))
  {
    $qva_metaData = get_post_meta($qva_serviceId, 'qva_ourservice', true);
    $qva_metaData = isset($qva_metaData['service']) ?  $qva_metaData['service'] : null;
  }else{
    $qva_isEmpty = true;
  }

?>
<section class="ourservice" id="services">

  <?php if ( isset(qvaCore::$qvaOptions['ourservices']['title']) || isset(qvaCore::$qvaOptions['ourservices']['short_description'])  || isset(qvaCore::$qvaOptions['ourservices']['description']) ) : 

          if (  !empty(qvaCore::$qvaOptions['ourservices']['title']) || !empty(qvaCore::$qvaOptions['ourservices']['short_description']) || !empty(qvaCore::$qvaOptions['ourservices']['description']) ) :
    ?>

  <div class="heading">
    <div class="container">
      <?php if (isset(qvaCore::$qvaOptions['ourservices']['title']) && !empty(qvaCore::$qvaOptions['ourservices']['title'])) printf( __(stripslashes("<h2>%s</h2>"), QVA_LANG ), qvaCore::$qvaOptions['ourservices']['title']);  ?>
      <?php if (isset(qvaCore::$qvaOptions['ourservices']['short_description']) && !empty(qvaCore::$qvaOptions['ourservices']['short_description']))  printf( __(stripslashes("<h3>%s</h3>"), QVA_LANG ),qvaCore::$qvaOptions['ourservices']['short_description'] );  ?>
      <!-- <h3>CREATE & PUBLISH DYNAMIC WEBSITES</h3> -->
       <?php 
          if (isset(qvaCore::$qvaOptions['ourservices']['description']) && !empty(qvaCore::$qvaOptions['ourservices']['description']))  printf( __( stripslashes("<p>%s</p>"), QVA_LANG ),qvaCore::$qvaOptions['ourservices']['description']);  ?>
    </div>
  </div>

  <?php endif; endif;?>

  <?php if (!$qva_isEmpty) : ?>
  <div class="container noPadd">
    <div class="row">
      <?php 
        $qva_mainContent = isset($qva_metaData['small_intro']) ? $qva_metaData['small_intro'] : '';
        if ($qva_mainContent) :
        foreach ($qva_mainContent as $k => $v) :
      ?>
      <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 service"> <i class="<?php echo isset($qva_metaData['service_icon'][$k]) ? $qva_metaData['service_icon'][$k]  . ' fa-5x' : ""; ?>"></i>
        <?php  isset($qva_metaData['service_title'][$k]) ? printf( __(stripslashes('<h3>%s</h3>'), QVA_LANG), $qva_metaData['service_title'][$k]) : ""; ?>
        <?php  !empty($v) ?   printf(__(stripslashes('<p>%s</p>'), QVA_LANG), $v)  : ""; ?>
      </div>
    <?php endforeach; 
      endif;
    ?>

    </div>
  </div>
  <?php endif; ?>
  
  <?php if ( isset($qva_metaData['slogan']) && !empty($qva_metaData['slogan']) ) : ?>

  <div class="textQu">
    <div class="container">
      <?php printf( __(stripslashes('<h2><sup><i class="fa fa-quote-left"></i></sup>%s<sup><i class="fa fa-quote-right"></i></sup></h2>'), QVA_LANG), $qva_metaData['slogan']) ; ?>
      <?php  isset($qva_metaData['author']) && !empty($qva_metaData['author']) ? printf(__(stripslashes('%s'), QVA_LANG), $qva_metaData['author'])  : ""; ?>
    </div>
  </div>
  
  <?php endif; ?>
</section>
